package com.moon.controller;

import com.moon.service.DataJoinService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
@RequestMapping("/dataJoin")
public class DataJoinController {
    @Autowired
    private DataJoinService dataJoinService;

    @GetMapping
    public void joinData() {
        log.info("----------开始执行数据关联------------------");
        dataJoinService.joinData();
    }
}
